package com.blackcat.dynamicexcel.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
* 
* @author zhanghui
* @since 2023/1/18 09:57
*/
@Data
@NoArgsConstructor
public class RowData {

    /**
     * 当前行
     */
    private Integer row;

    /**
     * 每行单元格
     */
    private List<ExcelCellData> cells;

    /**
     * 合并组数据
     */
    private Map<String,List<RowDataSubObject>> groupList;

    /**
     * sheet名称
     */
    private String sheetName;

    /**
     * 校验错误信息
     */
    private String errorText;

    /**
     * 多行合并字段
     */
    private String mergeField;

    /**
     * 字段数据 key：字段名称  value：字段值
     */
    private Map<String, String> fields;

    public RowData(Integer row, List<ExcelCellData> cells, Map<String, String> fields) {
        this.row = row;
        this.cells = cells;
        this.fields = fields;
    }
}
